Skip to content

🎨 Palette: Improved Quiet Mode UX#74

Open
EiJackGH wants to merge 2 commits intomainfrom
palette-fix-quiet-mode-7294501446686127162
Open

🎨 Palette: Improved Quiet Mode UX#74
EiJackGH wants to merge 2 commits intomainfrom
palette-fix-quiet-mode-7294501446686127162

Conversation

@EiJackGH
Copy link
Owner

🎨 Palette: Improved Quiet Mode UX

💡 What:

  • Fixed a bug where trade logs (Buy/Sell) were printed even when --quiet was enabled.
  • Added a sleek text-based progress bar for interactive sessions running in quiet mode.

🎯 Why:

  • Users running long simulations with --quiet (e.g., for data gathering) were getting flooded with trade logs.
  • Conversely, users running long simulations in quiet mode had no feedback on progress, leading to "is it hung?" anxiety.

📸 Before/After:

  • Before: python ... --quiet -> Printed thousands of lines of trade logs.
  • After: python ... --quiet -> Prints nothing (if non-interactive) or a progress bar (if interactive).
    Simulating: [██████████████████████████████] 100% (Day 100/100)

Accessibility:

  • The progress bar respects --no-color (using standard text if colors are disabled) and isatty (not polluting logs).

PR created automatically by Jules for task 7294501446686127162 started by @EiJackGH

- Suppressed Buy/Sell trade logs when `--quiet` is used, ensuring the output is truly quiet.
- Added a text-based progress bar for interactive sessions in quiet mode, providing feedback for long simulations.
- Added a reproduction test case `test_simulate_trading_quiet_mode_with_trades` to `test_bitcoin_trading.py`.
- Updated `.Jules/palette.md` with UX learnings.

Co-authored-by: EiJackGH <172181576+EiJackGH@users.noreply.github.com>
@google-labs-jules
Copy link
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

The repository previously included a GitHub Action workflow for Rust (`rust.yml`) which attempted to run `cargo build`. Since this is a Python project and does not contain a `Cargo.toml`, the workflow consistently failed. This commit removes the erroneous workflow file to fix the CI pipeline.

Co-authored-by: EiJackGH <172181576+EiJackGH@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant